﻿<Window x:Class="AboutWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="About" SizeToContent="Height" Width="377" WindowStyle="None" AllowsTransparency="True" Background="Transparent" WindowStartupLocation="CenterScreen" Height="254">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Border x:Name="topBar" MouseLeftButtonDown="topBar_MouseLeftButtonDown" Background="#FF000000" BorderBrush="#FFFFFFFF" CornerRadius="5,5,0,0">
                
            </Border>
            
            <Label HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Center" FontFamily="Agency FB" FontSize="20" FontWeight="Bold" Foreground="#FFFFFFFF">
                <TextBlock>About DB Script Runner</TextBlock>
            </Label>
        </Grid>
        
        
        <Border Grid.Row="1" Width="Auto" Height="187" VerticalAlignment="Stretch">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.713,1" StartPoint="0.713,0">
                    <GradientStop Color="#FFFFFFFF" Offset="0.933"/>
                    <GradientStop Color="CornflowerBlue" Offset="0.337"/>
                </LinearGradientBrush>
            </Border.Background>
            
            <Canvas>
            
            <StackPanel Margin="40,20,0,0" Orientation="Vertical">

                    <StackPanel Orientation="Vertical">
                        
                        <Label x:Name="mainContent" Grid.Row="1" Grid.Column="1" FontFamily="Agency FB" FontSize="30" FontWeight="Bold" >
                           
                            <TextBlock>
                                 <TextBlock.BitmapEffect>
                                            <DropShadowBitmapEffect
                                              ShadowDepth="4"
                                              Direction="330"
                                              Color="Black"
                                              Opacity="0.5"
                                              Softness="0.25" />
                                     </TextBlock.BitmapEffect>

                                
                                <TextBlock Foreground="White">DB Script Runner</TextBlock>
                                <Run Foreground="Yellow">Beta 1.1</Run>
                            </TextBlock>
                        </Label>
                        
                        <Label Margin="0,0,0,0"  Grid.Column="1" Grid.Row="2" x:Name="lblName" Content="Version 1.0" FontFamily="Agency FB" FontSize="20" FontWeight="Bold" Foreground="#FF000000"/>

                        <Label Grid.Column="1" Grid.Row="3">
                            <TextBlock   FontSize="14"  VerticalAlignment="Center"  HorizontalAlignment="Left" >
                            
                            <Hyperlink  Click="Website_Click" FontFamily="Arial" FontWeight="Normal" Foreground="Black" Background="#00FFFFFF">http://www.codeplex.com/DbScriptRunner</Hyperlink>

                            </TextBlock>
                        </Label>
                        
                   </StackPanel>


                   

                </StackPanel>

                <!--<Border Height="39" Width="275" Canvas.Left="66" Canvas.Top="34">
                    <Border.RenderTransform>
                        <SkewTransform AngleX="-50"  />
                    </Border.RenderTransform>

                    <Border.OpacityMask>
                        <LinearGradientBrush StartPoint="0,0.35" EndPoint="0,4">
                            <GradientStop Offset="0" Color="Transparent"></GradientStop>
                            <GradientStop Offset="0.7" Color="Black"></GradientStop>
                        </LinearGradientBrush>
                    </Border.OpacityMask>
                    <Border.Background>
                        <VisualBrush Opacity="20" Visual="{Binding ElementName=mainContent}">
                            <VisualBrush.Transform>
                                <ScaleTransform ScaleY="1" CenterY="30" >
                                </ScaleTransform>
                            </VisualBrush.Transform>
                        </VisualBrush>
                    </Border.Background>
                </Border>-->

            </Canvas>
            
        </Border>
        
        
            
        
            
        
       
        <Border Grid.Row="2" Width="Auto" Height="Auto" Background="#FF2E2E2E" BorderBrush="#FFFFFFFF" CornerRadius="0,0,5,5">
            
            <Grid>
                

                <Button x:Name="CloseButton" MinWidth="100" HorizontalAlignment="Right" Margin="4" Content="Close" Click="CloseButton_Click" Style="{StaticResource SubmitButton}" IsCancel="True" IsDefault="True" />
            </Grid>
           
        </Border>


    </Grid>

</Window>
